package route

import (
	"diaomao/controller/home"

	"github.com/gin-gonic/gin"
)

type WebRouter struct {
	Router *gin.RouterGroup
}

func NewWebRouter(router *gin.RouterGroup) *WebRouter {
	return &WebRouter{Router: router}
}

func (b *WebRouter) WebInit() {
	b.Router.GET("/", home.Index)
	// b.Router.GET("/captcha", agent.Captcha)
	// b.Router.POST("/login", agent.Login)

	// r := b.Router.Group("").Use(middleware.JWTAuth())
	// {
	// 	r.POST("/logout", agent.Logout)
	// }
}
